package Demo;

public class Demo17 {
    public static void main(String[] args) {
        father fa = new father(10, "");
        fa.setAge(10);
        int age = fa.getAge();
        fa.name();
        System.out.println(fa);
        new father(10, "25d").name();
        System.out.println(new father(10, "25d"));
        System.out.println(new father(10, "25d"));

    }
}

class father {
    private int age;
    String p3D;

    public father(int age) {

    }

    public father(int age, String p3D) {
        this(age);
        this.p3D = p3D;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getAge() {
        return age;
    }

    public void name() {
        System.out.println(age + "\n" + p3D);
    }

}